d/rules: Force softpipe OpenGL driver on mips* architectures
authorSimon McVittie <smcv@debian.org>
Mon, 15 Aug 2022 12:41:23 +0000 (13:41 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 16 Aug 2022 08:22:41 +0000 (09:22 +0100)
This is a workaround for misrendering and crashes when the buildds run
tests under llvmpipe on these architectures (see #993550, #1003348,
#1010838).

debian/rules

index 094f60e7e1029c927bf3e27b299c920765203ddf..3e7cbb2bc1353621b6d1df9c635f07865e1a91d8 100755 (executable)
@@ -217,6 +217,12 @@ $(info Architecture with qemu buildds detected, increasing test timeout a lot)
 test_timeout_multiplier = 20
 endif
 
+ifneq ($(filter mips%,$(DEB_HOST_ARCH_CPU)),)
+$(info Disabling use of llvmpipe due to mips family CPU, see https://bugs.debian.org/993550)
+export GALLIUM_DRIVER=softpipe
+export LIBGL_ALWAYS_SOFTWARE=true
+endif
+
 fuzzy_gsk_compare = \
        $(NULL)
 
@@ -255,11 +261,6 @@ ifeq (big,$(DEB_HOST_ARCH_ENDIAN))
                $(NULL)
 endif
 
-# Workaround for https://bugs.debian.org/1010838
-ifeq (mipsel,$(DEB_HOST_ARCH_CPU))
-export GALLIUM_DRIVER=softpipe
-endif
-
 override_dh_auto_test:
        env \
                BUILDDIR=debian/build/deb \